package org.osomit.sacct.session.token.impl;

import org.junit.Test;
import org.osomit.sacct.session.token.iface.TokenIdGenerator;
import com.google.inject.Injector;
import com.google.inject.Guice;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jul 2, 2009
 */
public class TokenIdGeneratorImpl_UT {

    @Test
    public void testGenerateId(){
        Injector injector = Guice.createInjector();

        TokenIdGenerator generator = injector.getInstance(TokenIdGenerator.class);
        for(int i=0; i<12; i++){
            System.out.println(generator.getNewTokenId("SACCT"));
        }
    }
}
